package com.ltx.blog_ltx.controller;


import com.ltx.blog_ltx.entity.pojo.Sort;
import com.ltx.blog_ltx.mapper.SortMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class SortController {
    @Autowired
    public SortMapper sortMapper;

    @GetMapping("/AllSort")
    public List<String> AllSort(){
        return sortMapper.queryAllSort();
    }
}
